#ifndef MYCHARTVIEW_H
#define MYCHARTVIEW_H

#include <QWidget>
#include <QChart>
#include <QtCharts>
#include <QChartView>
#include <QMouseEvent>
#include <QWheelEvent>
#include <QtCore/QDebug>
#include <QPoint>
#include <QMessageBox>

class MyChartView : public QChartView
{
    Q_OBJECT
public:
    explicit MyChartView(QChart *chart, QWidget *parent = nullptr);
    ~MyChartView();
    void setChartStyle(QChart::AnimationOptions options);
signals:

protected:
    void closeEvent(QCloseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void mousePressEvent(QMouseEvent *event);
    void wheelEvent(QWheelEvent *event);

private:
    QChart *chart;
    QPoint p;


};

#endif // MYCHARTVIEW_H
